#include "server.hpp"
#include "log.hpp"
#include <memory>
void Usage(const char *s)
{
    std::cerr << "Usage:\n\t" << s << " port" << "\n\n";
}
int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        Usage(argv[0]);
    }
    unique_ptr<Server> usvr(new Server(atoi(argv[1])));
    usvr->init();
    usvr->start();
    return 0;
}